<%
// coursedetail.jsp 
%>

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" %> 

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>最佳價價</title>
</head>
<body>
<jsp:useBean id="cou" scope="request" type="course.Course"></jsp:useBean>
<form method="POST" action="coudetail" name=form3>
	<p>新增/修改課程資料</p>
	<table border="1" width="60%" id="coursedetailtable">
	<tr>
		<td width="30%" align="center">課程代號 :</td>
		<td width="70%" align="center"><%=cou.getCr_id()%></td>
	</tr>
	<tr>
		<td width="30%" align="center">課程內容 :</td>
		<td width="70%" align="center"><%=cou.getCr_descr()%></td>
	</tr>
	<tr>
		<td width="30%" align="center">課程種類:</td>
		<td width="70%" align="center"><%=cou.getCr_type()%></td>
	</tr>
	<tr>
		<td width="30%" align="center">課程開始日期 :</td>
		<td width="70%" align="center"><%=cou.getCr_startdate()%></td>
	</tr>
	<tr>
		<td width="30%" align="center">課程結束日期 :</td>
		<td width="70%" align="center"><%=cou.getCr_enddate()%></td>
	</tr>
	<tr>
		<td width="30%" align="center">課程總時數 :</td>
		<td width="70%" align="center"><%=cou.getCr_hours()%></td>
	</tr>
	<tr>
		<td width="30%" align="center">學生總人數 :</td>
		<td width="70%" align="center"><%=cou.getCr_stucnt()%></td>
	</tr>
	<tr>
		<td width="30%" align="center">備註:</td>
		<td width="70%" align="center"><%=cou.getCr_remark()%></td>
	</tr>
	<tr>
		<td width="30%" align="center">課程對象 :</td>
		<td width="70%" align="center"><%=cou.getCr_obj()%></td>
	</tr>
	<tr>
		<td width="30%" align="center">上課地點 :</td>
		<td width="70%" align="center"><%=cou.getCr_location()%></td>
	</tr>
	<tr>
		<td width="30%" align="center">課程費用 :</td>
		<td width="70%" align="center"><%=cou.getCr_fee()%></td>
	</tr>

	</table>
	<br>
	<%
	out.println("<a href='courselist?ord=1' align=center>返回上頁</a>");
	
 	%>
	<br>
</form>
	
	<%
	String plist = (String) session.getAttribute("plist");
 	%>
	
	
	<p>評價 :</p>
    <table border=0><tr><td>

    <form method="post" action="prodetail">
    <input type="hidden" name="productchk" value="<%=pro.getProduct()%>">
    <input type="hidden" name="storechk" value="<%=pro.getStore()%>">
    <input type="hidden" name="pricechk" value="<%=pro.getPrice()%>">
    <input type="hidden" name="areachk" value="<%=pro.getArea()%>">
    <input type="hidden" name="typechk" value="<%=pro.getType()%>">
    <input type="hidden" name="vcountchk" value="<%=pro.getVcount()%>">
    <input type="hidden" name="tcountchk" value="<%=pro.getTcount()%>">
    <input type="hidden" name="proidchk" value="<%=pro.getProid()%>">
    <input type="hidden" name="op" value="checkok">
	<input type="submit" value="正確" name="BD1">
	</form></td>
	
	<td><form method="post" action="prodetail">
    <input type="hidden" name="productchk" value="<%=pro.getProduct()%>">
    <input type="hidden" name="storechk" value="<%=pro.getStore()%>">
    <input type="hidden" name="pricechk" value="<%=pro.getPrice()%>">
    <input type="hidden" name="areachk" value="<%=pro.getArea()%>">
    <input type="hidden" name="typechk" value="<%=pro.getType()%>">
    <input type="hidden" name="vcountchk" value="<%=pro.getVcount()%>">
    <input type="hidden" name="tcountchk" value="<%=pro.getTcount()%>">
    <input type="hidden" name="proidchk" value="<%=pro.getProid()%>">
    <input type="hidden" name="op" value="checknotok">
	<input type="submit" value="有誤" name="BD2">
	</form></td>
	
	<td><form method="post" action="prodetail">
    <input type="hidden" name="productchk" value="<%=pro.getProduct()%>">
    <input type="hidden" name="storechk" value="<%=pro.getStore()%>">
    <input type="hidden" name="pricechk" value="<%=pro.getPrice()%>">
    <input type="hidden" name="areachk" value="<%=pro.getArea()%>">
    <input type="hidden" name="typechk" value="<%=pro.getType()%>">
    <input type="hidden" name="vcountchk" value="<%=pro.getVcount()%>">
    <input type="hidden" name="tcountchk" value="<%=pro.getTcount()%>">
    <input type="hidden" name="proidchk" value="<%=pro.getProid()%>">
    <input type="hidden" name="op" value="emailfd">
	<input type="submit" value="推介給朋友" name="BD2">
	</form>
	
	</td></tr></table>
	<br>
<!-- 	

<% //if (plist.equals("CK") ) {  %>
<% if (request.getParameter("BD2") != null) { %>
	<p>如發現上述價格不對請輸入新價格:</p>
    <form method="post" action="prodetail">
	<input type="hidden" name="proid" value="<%=pro.getProid()%>">
	<input type="hidden" name="op" value="posthandler">
	<input type ="text" name="cprice" size="30" value="">
	<br>
	<input type="submit" value="更新" name="PD1">
	</form>
<% } %>	
-->
	</body>
</html>
